#ifndef __TGA__
#define __TGA__
#include <cassert>
#include <iostream>
#include <cstdlib>
#include <math.h>
using namespace std;

class TGA {
    public:

    TGA(const char *filename);
    
	//~TGA() { delete[] data; data = 0; }

	//void destroy() { delete[] data; data = 0; }

    int width;
	int height;
    unsigned char byteCount;
    unsigned char* data;
	
	pair< int, int > getMax();
	int getRadio();
	pair< int, int > getCentro(int);
	int* getPixel(int i, int j);
};


#endif
